package a.h;

import javax.swing.*;
import java.awt.*;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyVetoException;
import java.beans.VetoableChangeListener;
import java.util.Collections;
import java.util.List;

public abstract class ec
  implements xc, gd
{
  public static final Color a = Color.lightGray;
  public static final Object b = "y.option.OptionItem.UNDEFINED";
  public static final String c = "OptionItem.context";
  public static final String d = "OptionItem.groups";
  public static final String e = "OptionItem.longDescription";
  public static final String f = "enabled";
  public static final String g = "value";
  public static final String h = "valueUndefined";
  public static final String i = "classType";
  public static final String j = "tipText";
  private static final gb k = new gb();
  protected String l;
  boolean m;
  boolean n;
  private zb o;
  private final vb p;
  private String q;
  private Class r;
  public static boolean s;
  public static int t;
  
  protected ec()
  {
    this((Class)null);
  }
  
  protected ec(Class paramClass)
  {
    this(paramClass, "");
  }
  
  protected ec(String paramString)
  {
    this(null, paramString);
  }
  
  protected ec(Class paramClass, String paramString)
  {
    this.r = paramClass;
    this.l = paramString;
    this.n = true;
    this.o = null;
    this.p = new vb(this);
    a("ItemEditor.autoAdopt", Boolean.TRUE);
  }
  
  protected void a(Class paramClass)
  {
    Class localClass = this.r;
    if (t == 0)
    {
      if (nb.a(localClass, paramClass)) {
        this.r = paramClass;
      }
    }
    else {
      a(i, localClass, paramClass);
    }
  }
  
  public Class c()
  {
    return this.r;
  }
  
  public String d()
  {
    return this.l;
  }
  
  public void a(String paramString)
  {
    String str = this.q;
    if (t == 0)
    {
      if (nb.a(str, paramString)) {
        this.q = paramString;
      }
    }
    else {
      a(j, str, paramString);
    }
  }
  
  public String e()
  {
    return this.q;
  }
  
  public boolean f()
  {
    return this.n;
  }
  
  public void a(boolean paramBoolean)
  {
    boolean bool = this.n;
    if (t == 0)
    {
      if (bool != paramBoolean)
      {
        this.n = paramBoolean;
        a(f, nb.a(bool), nb.a(paramBoolean));
      }
    }
    else {
      d(paramBoolean);
    }
  }
  
  public boolean g()
  {
    return true;
  }
  
  public String h()
  {
    if (t == 0) {
      if (o() == null) {
        return "<null/>";
      }
    }
    if (this.r != null) {
      try
      {
        return a.i.ib.c().a(o(), this.r);
      }
      catch (IllegalArgumentException localIllegalArgumentException)
      {
        return null;
      }
    }
    return null;
  }
  
  public void b(String paramString)
  {
    int i1 = t;
    if (i1 == 0)
    {
      if ("<null/>".equals(paramString))
      {
        if (i1 != 0) {
          break label33;
        }
        a(null);
      }
    }
    else if (!s) {
      return;
    }
    label33:
    if ((i1 != 0) || (this.r != null)) {
      try
      {
        a(a.i.ib.c().a(paramString, this.r));
      }
      catch (IllegalArgumentException localIllegalArgumentException)
      {
        n.a(localIllegalArgumentException);
      }
    }
  }
  
  public JComponent i()
  {
    return k.a(this).f();
  }
  
  public JComponent a(ob paramob, String paramString)
  {
    return i();
  }
  
  public boolean j()
  {
    return true;
  }
  
  public abstract void k();
  
  public boolean l()
  {
    return true;
  }
  
  public boolean m()
  {
    return this.m;
  }
  
  public void b(boolean paramBoolean)
  {
    boolean bool = this.m;
    if (t == 0)
    {
      if (bool != paramBoolean)
      {
        this.m = paramBoolean;
        a(h, nb.a(bool), nb.a(paramBoolean));
      }
    }
    else {
      c(paramBoolean);
    }
  }
  
  public Object c(String paramString)
  {
    return this.p.a(paramString);
  }
  
  public void d(String paramString)
  {
    this.p.b(paramString);
  }
  
  public void a(String paramString, Object paramObject)
  {
    this.p.a(paramString, paramObject);
  }
  
  public abstract String n();
  
  public abstract Object o();
  
  public abstract void a(Object paramObject);
  
  protected void b(Object paramObject)
  {
    d_ locald_ = new d_(paramObject);
    a(locald_);
  }
  
  protected void c(boolean paramBoolean)
  {
    b_ localb_ = new b_(paramBoolean);
    a(localb_);
  }
  
  protected void d(boolean paramBoolean)
  {
    c_ localc_ = new c_(paramBoolean);
    a(localc_);
  }
  
  public tb a(tb paramtb)
  {
    if (t == 0) {
      if (this.o == null) {
        this.o = new zb(this, 1);
      }
    }
    this.o.a(paramtb);
    return paramtb;
  }
  
  public void b(tb paramtb)
  {
    if (t == 0) {
      if (this.o == null) {
        return;
      }
    }
    this.o.b(paramtb);
  }
  
  public List p()
  {
    if (t == 0) {
      if (this.o == null) {
        return Collections.EMPTY_LIST;
      }
    }
    return this.o.a();
  }
  
  public void a(ib.a_ parama_)
  {
    if (t == 0) {
      if (this.o == null) {
        this.o = new zb(this, 1);
      }
    }
    this.o.a(parama_);
  }
  
  public void b(ib.a_ parama_)
  {
    if (t == 0) {
      if (this.o == null) {
        return;
      }
    }
    this.o.b(parama_);
  }
  
  void a(a_ parama_)
  {
    if ((t != 0) || (this.o != null)) {
      this.o.a(parama_);
    }
  }
  
  public void c(PropertyChangeListener paramPropertyChangeListener)
  {
    this.p.c(paramPropertyChangeListener);
  }
  
  public void d(PropertyChangeListener paramPropertyChangeListener)
  {
    this.p.d(paramPropertyChangeListener);
  }
  
  public void c(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    this.p.c(paramString, paramPropertyChangeListener);
  }
  
  public void d(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    this.p.d(paramString, paramPropertyChangeListener);
  }
  
  protected void a(String paramString, Object paramObject1, Object paramObject2)
  {
    this.p.a(paramString, paramObject1, paramObject2);
  }
  
  protected void a(PropertyChangeEvent paramPropertyChangeEvent)
  {
    this.p.a(paramPropertyChangeEvent);
  }
  
  public void a(VetoableChangeListener paramVetoableChangeListener)
  {
    this.p.a(paramVetoableChangeListener);
  }
  
  public void b(VetoableChangeListener paramVetoableChangeListener)
  {
    this.p.b(paramVetoableChangeListener);
  }
  
  public void a(String paramString, VetoableChangeListener paramVetoableChangeListener)
  {
    this.p.a(paramString, paramVetoableChangeListener);
  }
  
  public void b(String paramString, VetoableChangeListener paramVetoableChangeListener)
  {
    this.p.b(paramString, paramVetoableChangeListener);
  }
  
  protected void b(String paramString, Object paramObject1, Object paramObject2)
    throws PropertyVetoException
  {
    this.p.c(paramString, paramObject1, paramObject2);
  }
  
  protected void b(PropertyChangeEvent paramPropertyChangeEvent)
    throws PropertyVetoException
  {
    this.p.b(paramPropertyChangeEvent);
  }
  
  private static final class b_
    extends ec.a_
  {
    private boolean a;
    
    public b_(boolean paramBoolean)
    {
      this.a = paramBoolean;
    }
    
    public void a(tb paramtb)
    {
      if ((ec.t != 0) || (paramtb.m())) {
        paramtb.d(this.a);
      }
    }
  }
  
  private static final class c_
    extends ec.a_
  {
    private boolean a;
    
    public c_(boolean paramBoolean)
    {
      this.a = paramBoolean;
    }
    
    public void a(tb paramtb)
    {
      if ((ec.t != 0) || (paramtb.m())) {
        paramtb.c(this.a);
      }
    }
  }
  
  private static final class d_
    extends ec.a_
  {
    private Object a;
    
    public d_(Object paramObject)
    {
      this.a = paramObject;
    }
    
    public void a(tb paramtb)
    {
      if ((ec.t != 0) || (paramtb.m())) {
        paramtb.a(this.a);
      }
    }
  }
  
  static abstract class a_
    implements zb.a_
  {
    public void a(ib paramib)
    {
      a((tb)paramib);
    }
    
    public abstract void a(tb paramtb);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.ec

 * JD-Core Version:    0.7.0.1

 */